home *** CD-ROM | disk | FTP | other *** search
- *---------------------------------------
- *
- * âWâçâCâXâeâBâbâNôⁿù═
- *
- *---------------------------------------
- joy_0:
- move.w JOY_STICK_0,d0 * â|ü[âgéOé⌐éτô╟é▌ì₧é▌
- movea.w #KEY_TBL,a4 * éhénérébâÅü[âNù╠êµ
- btst.b #6,2(a4) * âLü[âRü[âhâOâïü[âvé¬éáéΘ
- beq @f
- bclr.l #0,d0 * âWâçâCâXâeâBâbâNé╠Ädùlé╔éáéφé╣éΘ
- bra 1f
- @@:
- btst.b #7,5(a4)
- beq 1f
- bclr.l #1,d0
- 1:
- btst.b #2,4(a4)
- beq @f
- bclr.l #2,d0
- bra 2f
- @@:
- btst.b #4,4(a4)
- beq 2f
- bclr.l #3,d0
- 2:
- btst.b #6,3(a4)
- beq @f
- bclr.l #5,d0
- @@:
- btst.b #2,5(a4)
- beq @f
- bclr.l #6,d0
- @@:
- rts
- *---------------------------------------
- joy_1: * â|ü[âgéOé╞ô»é╢Åêù¥
- move.w JOY_STICK_1,d0
- movea.w #KEY_TBL,a4
- btst.b #4,8(a4)
- beq @f
- bclr.l #0,d0
- bra 1f
- @@:
- btst.b #4,9(a4)
- beq 1f
- bclr.l #1,d0
- 1:
- btst.b #7,8(a4)
- beq @f
- bclr.l #2,d0
- bra 2f
- @@:
- btst.b #1,9(a4)
- beq 2f
- bclr.l #3,d0
- 2:
- btst.b #3,7(a4)
- beq @f
- bclr.l #5,d0
- @@:
- btst.b #6,7(a4)
- beq @f
- bclr.l #6,d0
- @@:
- rts
- *---------------------------------------
- not_joy:
- st d0
- rts
- *---------------------------------------
- joy_cpu:
- st d0
- move.w C_X(a1),d1
- move.w C_X(a2),d2
- move.w ak_cnt(pc),d3
- moveq.l #0,d4
-
- tst.w sa_cnt
- bne 1f
-
- cmpi.w #63,C_K(a1)
- bhi 3f
- cmpi.w #7,C_SSA_F(a1)
- blt 3f
- cmpi.w #7,d3
- bne 3f
- bra 2f
- 3:
- cmpi.w #7,C_SA_F(a1)
- blt 1f
- cmpi.w #6,d3
- bne 1f
- bra 2f
- 1:
- addi.w #16,d2
- cmp.w d2,d1
- blt @f
- bclr #2,d0
- moveq.l #1,d4
- @@:
- subi.w #32,d2
- cmp.w d2,d1
- bgt @f
- bclr #3,d0
- moveq.l #1,d4
- @@:
- move.w C_Y(a1),d1
- move.w C_Y(a2),d2
-
- addi.w #16,d2
- cmp.w d2,d1
- blt @f
- bclr #0,d0
- moveq.l #1,d4
- @@:
- subi.w #32,d2
- cmp.w d2,d1
- bgt 2f
- bclr #1,d0
- moveq.l #1,d4
- 2:
- tst.w C_M_F(a1) * âLâââôâZâïìUîéé═é╡é╚éó
- bne joy_cpu_exit
- tst.w d4
- bne joy_cpu_exit
-
- lea.l at_kind(pc),a4
- tst.w C_LR_F(a1)
- beq @f
- lea.l 8(a4),a4
- @@:
- move.b 0(a4,d3.w),d0
- * ébéoété═âKü[âhé╡é╚éó
- joy_cpu_exit:
- clr.w C_B_JOY(a1)
- addq.w #1,d3
- andi.w #$0007,d3
- move.w d3,ak_cnt
- addq.w #1,sa_cnt
- andi.w #$003f,sa_cnt
- rts
-
- at_kind:
- .dc.b $bf,$be,$bd,$bf,$be,$bd,$b7,$9f
- .dc.b $bf,$be,$bd,$bf,$be,$bd,$bb,$9f
- ak_cnt:
- .dc.w 6
- sa_cnt:
- .dc.w 0
- *---------------------------------------